RequestHandler

fun fun interface RequestHandler

A handler that modifies outgoing requests and optionally handles authentication on 401s.

Functions

canHandleAuthentication
Link copied to clipboard
open fun canHandleAuthentication(response: HttpResponse): Boolean
If this returns true, handleAuthentication must be implemented.
handleAuthentication
Link copied to clipboard
open suspend fun handleAuthentication(client: HttpClient, url: URL, data: Any, options: <ERROR CLASS>): HttpResponse
Will not be called unless canHandleAuthentication is true.
prepareRequest
Link copied to clipboard
abstract fun <ERROR CLASS>.prepareRequest(headers: MutableHeaders)
Modify an outgoing request.

Inheritors

HeaderProvider
Link copied to clipboard

Sources

js source
Link copied to clipboard